/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dca.sistemascontrole.domain;

import java.util.ArrayList;
import java.util.List;
import org.jfree.data.time.FixedMillisecond;

/**
 *
 * @author Rafael
 */
public class VariaveisAnalise {

    //TODO inutil agora
    
    private double setpoint;
    private List<DataObject> nivelTanqueInferior = new ArrayList<DataObject>();
    private List<DataObject> nivelTanqueSuperior = new ArrayList<DataObject>();

    public VariaveisAnalise(double setpoint) {
        this.setpoint = setpoint;
    }

    public void addTanqueInferior(double value, long t) {
        nivelTanqueInferior.add(new DataObject(value, new FixedMillisecond(t)));
    }

    public void addTanqueSuperior(double value, long t) {
        nivelTanqueSuperior.add(new DataObject(value, new FixedMillisecond(t)));
    }

    public double getSetpoint() {
        return setpoint;
    }

    public List<DataObject> getNivelTanqueInferior() {
        return nivelTanqueInferior;
    }

    public List<DataObject> getNivelTanqueSuperior() {
        return nivelTanqueSuperior;
    }
}
